package com.qijia.travel.domain;

import java.lang.reflect.Method;
import java.util.Date;

import com.qijia.travel.helper.ObjectHelper;

public class TouristGroupDetail {

	private Integer touristGroupDetailId;
	private String touristGroupSn;
	private Integer guideId;
	private String guideName;
	private Date startDt;
	private Date endDt;
	private Float continuedDate;
	private Float actualContinuedDate;

	public Integer getTouristGroupDetailId() {
		return touristGroupDetailId == null ? 0 : touristGroupDetailId;
	}

	public void setTouristGroupDetailId(Integer touristGroupDetailId) {
		this.touristGroupDetailId = touristGroupDetailId;
	}

	public String getTouristGroupSn() {
		return touristGroupSn;
	}

	public void setTouristGroupSn(String touristGroupSn) {
		this.touristGroupSn = touristGroupSn;
	}

	public Integer getGuideId() {
		return guideId;
	}

	public void setGuideId(Integer guideId) {
		this.guideId = guideId;
	}

	public String getGuideName() {
		return guideName;
	}

	public void setGuideName(String guideName) {
		this.guideName = guideName;
	}

	public Date getStartDt() {
		return startDt;
	}

	public void setStartDt(Date startDt) {
		this.startDt = startDt;
	}

	public Float getContinuedDate() {
		return continuedDate;
	}

	public void setContinuedDate(Float continuedDate) {
		this.continuedDate = continuedDate;
	}

	public Float getActualContinuedDate() {
		return actualContinuedDate;
	}

	public void setActualContinuedDate(Float actualContinuedDate) {
		this.actualContinuedDate = actualContinuedDate;
	}
	
	public String toString() {
		Method[] ms = this.getClass().getDeclaredMethods();
		String s = "[旅游细节表]";
		for (Method m : ms) {
			if (m.getName().indexOf("get") != 0)
				continue;
			try {
				s += m.getName() + "-->"
						+ ObjectHelper.invokeMethod(this, m.getName()) + " \n ";
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return s;
	}

	public Date getEndDt() {
		return endDt;
	}

	public void setEndDt(Date endDt) {
		this.endDt = endDt;
	}
}